.tr-rating {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: start;

  .q-rating {
    color: rgba(0, 0, 0, 0.2);
  }
  // 设置未激活时颜色，不好设置
  .q-rating__icon-container {
    .q-icon:not(.q-rating__icon--active) {
      color: rgba(0, 0, 0, 0.2) !important;
      opacity: 1;
      text-shadow: none;
    }
    .q-rating__icon--active {
      // color: currentColor !important;
      opacity: 1;
    }
  }

  .q-rating__icon-container + .q-rating__icon-container {
    margin-left: 8px;
  }

  // 禁用重置
  .disabled,
  [disabled] {
    opacity: 1 !important;
  }
  .disabled,
  .disabled *,
  [disabled],
  [disabled] * {
    cursor: default !important;
  }

  .tr-rating-helptext {
    margin-left: 20px;
    color: rgba(#000, var(--t-color-opacity, /*批量处理90%透明度*/0.9));
  }

  .tr-rating-value {
    position: relative;
    width: 100%;

    .tr-rating-cnt {
      display: flex;
      align-items: center;
      min-height: 32px;
    }
  }
  // 错误提示样式和input组件保持一致
  .u-error-message {
    position: relative;
    padding-top: 5px;
    padding-bottom: 0;
    padding-bottom: 6px;
    font-size: 11px;
    min-height: 20px;
    line-height: 1.5;
    color: #f00;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .label-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 32px;
    text-align: right;
    justify-content: flex-end;
  }

  .tr-label-prefix-wraper {
    width: auto;
  }
  .tr-label-prefix-wraper-left {
    width: auto;
  }
  .tr-label-prefix {
    justify-content: flex-end;
    text-wrap: nowrap;
    gap: 4px;
    min-width: 88px;
    margin-right: 8px;
  }

  &.z-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    .tr-label-prefix {
      justify-content: flex-start;
    }

    .tr-label-prefix-wraper {
      padding-bottom: 0;
    }

    .label-title {
      line-height: 1.5;
    }
  }

  &.z-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    .tr-label-prefix {
      justify-content: flex-start;
    }

    .tr-label-prefix-wraper {
      padding-bottom: 0;
    }

    .tr-rating-cnt {
      min-height: 48px;
    }

    .label-title {
      line-height: 1.5;
    }

    .u-error-message {
      position: relative;
      padding-top: 5px;
      padding-bottom: 0;
      font-size: 12px;
      line-height: 18px;
      min-height: 0;
      transform: none;
    }

    // 系统样式，表单组件标准样式
    &.tr-rating-form {
      .tr-rating-cnt {
        min-height: 47px;
        border-bottom: 1px solid #f1f1f1;
      }
    }
  }
}

.text-teld_primary {
  color: var(--t-color) !important;
}

.bg-teld_primary {
  background: var(--t-color) !important;
}
